# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=iso-codes
pkgver=4.15.0
pkgrel=1
pkgdesc="ISO codes and their translations"
url="https://salsa.debian.org/iso-codes-team/iso-codes"
arch="noarch"
license="LGPL-2.1-or-later"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="python3 gettext"
subpackages="$pkgname-lang $pkgname-dev"
source="https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/v4.15.0/iso-codes-v4.15.0.tar.bz2"
builddir="$srcdir/iso-codes-v$pkgver"

build() {
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" pkgconfigdir=/usr/lib/pkgconfig install
}

sha512sums="
fd1bf4bfec8e29786388cf81a81328e880431cf68a9d56733c231bc1ad81b3cf39464f0c43f6e171dc4d0dcf6303711fd67cae6a0f878e5eafebe0c202b3f651  iso-codes-v4.15.0.tar.bz2
"
